/*
* @author : TF-BJ-C064
* @creation : 2014-7-29 下午2:49:34
* @description : 
*
*/

package com.tool.tmap;

public class GPSPoint {
	
	private double longitude;
	private double x;
	private double latitude;
	private double y;
	
	public GPSPoint(){}
	
	public GPSPoint(double x1, double y1) {
		this.setLongitude(x1);
		this.setLatitude(y1);
	}
	
	/**
	 * x = longitude
	 * <p>Title: getLongitude</p>
	 * <p>Description: </p>
	 * @return
	 */
	public double getLongitude() {
		return longitude;
	}
	public void setLongitude(double longitude) {
		this.longitude = longitude;
		this.x = longitude;
	}
	
	/**
	 * y = latitude
	 * <p>Title: getLatitude</p>
	 * <p>Description: </p>
	 * @return
	 */
	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
		this.y = latitude;
	}
	
	/**
	 * x = longitude
	 * <p>Title: getX</p>
	 * <p>Description: </p>
	 * @return
	 */
	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
		this.longitude = x;
	}
	/**
	 * y = latitude
	 * <p>Title: getY</p>
	 * <p>Description: </p>
	 * @return
	 */
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
		this.latitude = y;
	}
	
	@Override
	public String toString(){
		return "{x:"+this.getLongitude()+",y:"+this.getLatitude()+"}";
	}

}
